<?php
if (!defined('BASEPATH'))
	exit('No direct script access allowed');

class CmpDataEntity {
	var $id;
	var $date;
	var $comA;
	var $comB;
	var $comAValue;
	var $comBValue;
	var $ratio;
	var $std_dev;
	var $mean_ra;
	var $ds_mean;
	var $signal;
	var $spread;

	public function CmpDataEntity($arr = array('tid' => null, 'tdate' => null, 'tcomA' => null,
	'tcomB' => null, 'tcomAValue' => null,
	'tcomBValue' => null,'tratio' => null, 'tstd_dev' => null, 'tmean_ra' => null, 'tds_mean' => null,
	'tsignal' => null, 'tspread' => null)) {
		$this -> id = $arr['tid'];
		$this -> date = $arr['tdate'];
		$this -> comA = $arr['tcomA'];
		$this -> comB = $arr['tcomB'];
		$this -> comAValue = $arr['tcomAValue'];
		$this -> comBValue = $arr['tcomBValue'];
		$this -> ratio = $arr['tratio'];
		$this -> std_dev = $arr['tstd_dev'];
		$this -> mean_ra = $arr['tmean_ra'];
		$this -> ds_mean = $arr['tds_mean'];
		$this -> signal = $arr['tsignal'];
		$this -> spread = $arr['tspread'];
	}

	public function setId($val) {
		$this -> id = $val;
	}

	public function getId() {
		return $this -> id;
	}

	public function setDate($val) {
		$this -> date = $val;
	}

	public function getDate() {
		return $this -> date;
	}

	public function setComA($val) {
		$this -> comA = $val;
	}

	public function getComA() {
		return $this -> comA;
	}
	
	public function setComAValue($val) {
		$this -> comAValue = $val;
	}

	public function getComAValue() {
		return $this -> comAValue;
	}

	public function setComB($val) {
		$this -> comB = $val;
	}

	public function getComB() {
		return $this -> comB;
	}
	
	public function setComBValue($val) {
		$this -> comBValue = $val;
	}

	public function getComBValue() {
		return $this -> comBValue;
	}

	public function setRatio($val) {
		$this -> ratio = $val;
	}

	public function getRatio() {
		return $this -> ratio;
	}

	public function setStdDev($val) {
		$this -> std_dev = $val;
	}

	public function getStdDev() {
		return $this -> std_dev;
	}

	public function setMeanRa($val) {
		$this -> mean_ra = $val;
	}

	public function getMeanRa() {
		return $this -> mean_ra;
	}

	public function setDsMean($val) {
		$this -> ds_mean = $val;
	}

	public function getDsMean() {
		return $this -> ds_mean;
	}

	public function setSignal($val) {
		$this -> signal = $val;
	}

	public function getSignal() {
		return $this -> signal;
	}

	public function setSpread($val) {
		$this -> spread = $val;
	}

	public function getSpread() {
		return $this -> spread;
	}

}
